package com.ruoyi.customer.service.impl;

import com.ruoyi.customer.domain.Need;
import com.ruoyi.customer.mapper.NeedMapper;
import com.ruoyi.customer.service.INeedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author cans
 * @date 2021/12/26
 **/
@Service
public class NeedServiceImpl implements INeedService {

    @Resource
    private NeedMapper needMapper;

    @Override
    public List<Need> selectList(Need need) {
        return needMapper.selectList(need);
    }

    @Override
    public int insert(Need need) {
        return needMapper.insert(need);
    }

    @Override
    public int delete(Long id) {
        return needMapper.deleteById(id);
    }
}
